<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl" xml:lang="pl">
<head>
<base href="<?php echo Yii::app()->request->baseUrl; ?>/static/admincp/" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="Paweł 'kilab' Balicki - kilab.pl" />
<title>Admin Control Panel</title>
<link rel="stylesheet" type="text/css" href="css/login.css" media="screen" />
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="../libs/jquery/validation/jquery.validate.min.js"></script>
</head>
<body>
<div class="wrap">
	<div id="content">
		<div id="main">
			<div class="full_w">
            	<?php 
					foreach(Yii::app()->admin->getFlashes() as $key => $message){
						echo '<div class="n_'.$key.'"><p>'.$message."</p></div>\n";
					}
				?>
				<form method="post" id="frmLogin">
					<label for="username">Username:</label>
					<input id="username" name="username" class="text required" maxlength="256" />
					<label for="password">Password:</label>
					<input id="password" name="password" type="password" class="text required" maxlength="256" />
                    <?php if(CCaptcha::checkRequirements()): ?>
                    <label for="captcha">Captcha:</label>
					<input id="verifyCode" name="verifyCode" type="text" class="text required" />
                    <?php	$this->widget('CCaptcha',array( 'captchaAction'=>'auth/captcha', 
															'buttonLabel' => "Reload",
															'showRefreshButton' => true,
															'clickableImage' => true)); 
					?>
                    <?php endif; ?>
					<div class="sep"></div>
					<button type="submit">Login</button> <a href="/admincp/auth/reset">Forgotten password?</a>
				</form>
			</div>
			<div class="footer">&raquo; <a href="<?php echo Yii::app()->request->baseUrl; ?>"><?php echo Yii::app()->request->baseUrl; ?></a> | <a href="<?php echo Yii::app()->request->baseUrl.'/admincp'; ?>">Admin Control Panel</a></div>
		</div>
	</div>
</div>
<script>
$(function(){
	$('#frmLogin').validate();
});
</script>

</body>
</html>